package com.baigu.order.rpc.service.impl;

import com.baigu.common.annotation.BaseService;
import com.baigu.common.base.BaseServiceImpl;
import com.baigu.order.dao.mapper.BgOrderMapper;
import com.baigu.order.dao.model.BgOrder;
import com.baigu.order.dao.model.BgOrderExample;
import com.baigu.order.rpc.api.BgOrderService;
import com.baigu.order.rpc.api.model.BgOrderModel;
import com.baigu.order.rpc.mapper.BgOrderBizMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* BgOrderService实现
* Created by baigu on 2017/11/22.
*/
@Service
@Transactional
@BaseService
public class BgOrderServiceImpl extends BaseServiceImpl<BgOrderMapper, BgOrder, BgOrderExample> implements BgOrderService {

    private static final Logger LOGGER = LoggerFactory.getLogger(BgOrderServiceImpl.class);

    @Autowired
    BgOrderMapper bgOrderMapper;
    @Autowired
    private BgOrderBizMapper bgOrderBizMapper;

    @Override
    public BgOrderModel findOrderModel() {
        return bgOrderBizMapper.findOrderModel();
    }
}